package com.datareport.data.service;

import com.datareport.data.dto.ResultDTO;
import com.datareport.data.entity.User;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author DataReport
 * @since 2021-11-14
 */
public interface UserService extends IService<User> {

    User getByName(String username);

    String getUserAuthorityInfo(Long userId);

    User selectSuperAdmin(Long id);

    List<User> listUserById(Long id);

    List<User> listAdminUserById(Long id);

    List<User> listAdminById(Long id);

    ResultDTO deleteUser(Long id);
}
